package com.egao.orderB.controller;

import com.egao.common.core.web.BaseController;
import com.egao.orderB.service.SequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 角色管理
 **/
@Controller
@RequestMapping("/api/sequence")
public class SequenceController extends BaseController {
    @Autowired
    private SequenceService sequenceService;

    /**
     * 到的sequence
     **/
    @ResponseBody
    @RequestMapping("/code")
    public String code(String code) {
        return sequenceService.genCertCode(code,getLoginUser().getOrganizationId()+"");
    }

}
